
package com.insigma.business.qrcode.soldier.dto;


import com.insigma.business.qrcode.common.vo.DescEnum;

import java.util.LinkedHashMap;
import java.util.Map;


public enum PlacementScoreReviewEnum implements DescEnum {

    
    UNDO("无", "请对档案分确认"),

    
    PASS("通过", "请进行志愿填报"),

    
    FAIL("申述", "等待申述结果"),
    ;

    PlacementScoreReviewEnum(String desc) {
        this.desc = desc;
    }

    PlacementScoreReviewEnum(String desc, String task) {
        this.desc = desc;
        this.task = task;
    }

    
    private String desc;

    private String task;

    @Override
    public String getDesc() {
        return desc;
    }

    public String getTask() {
        return task;
    }

    
    public static PlacementScoreReviewEnum getByEnumName(final String enumName) {
        for (PlacementScoreReviewEnum element : values()) {
            if (element.name().equals(enumName)) {
                return element;
            }
        }
        return null;
    }

    
    public static Map<String,String> getName2DescMap(){
        Map<String,String> name2DescMap = new LinkedHashMap<>();
        for (PlacementScoreReviewEnum element : values()) {
            name2DescMap.put(element.name(), element.desc);
        }

        return name2DescMap;
    }

}
